package com.example.bookmapper.controller;

import com.example.bookmapper.pojo.AdsDiscountRatioAnalysis;
import com.example.bookmapper.service.AdsDiscountRatioAnalysisService;
import com.example.bookmapper.util.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class AdsDiscountRatioAnalysisController {
    @Autowired
    private AdsDiscountRatioAnalysisService adsDiscountRatioAnalysisService;

    @GetMapping("/queryAllAdsDiscountRatioAnalysis")
    public ResponseResult<List<AdsDiscountRatioAnalysis>> queryAllAdsDiscountRatioAnalysis() {
        List<AdsDiscountRatioAnalysis> adsDiscountRatioAnalyses = adsDiscountRatioAnalysisService.queryAllAdsDiscountRatioAnalysis();
        return new ResponseResult<>("200", "查询成功", adsDiscountRatioAnalyses);
    }
}

